//
//  TestOneViewController.m
//  DZYFM
//
//  Created by dongzhenyu on 2017/11/1.
//  Copyright © 2017年 dongzhenyu. All rights reserved.
//

#import "TestOneViewController.h"
#import "TestTwoViewController.h"

@interface TestOneViewController ()

@end

@implementation TestOneViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    self.view.tag = 666;
    self.view.backgroundColor = [UIColor redColor];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    NSLog(@"点到我了");
    static BOOL isPlay = NO;
    isPlay = !isPlay;
    [[NSNotificationCenter defaultCenter] postNotificationName:@"playState" object:@(isPlay)];
    UIImage *image = [UIImage imageNamed:@"zxy_icon"];
    [[NSNotificationCenter defaultCenter] postNotificationName:@"playImage" object:image];
    [self.navigationController pushViewController:[TestTwoViewController new] animated:YES];
}


@end
